{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}E:\Github\Bolivia\00_replication_files\log-files/2_Figure_A3.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}25 Jan 2022, 21:40:01
{txt}
{com}. 
. timer on 2
{txt}
{com}. 
. *------------*
. * Figure A.3 *
. *------------*
.         * Figure A.3.a
.         *-------------
.                 use "data/outputs/computo_verificadortrepdate_missingsatthend.dta", clear
{txt}
{com}.                 keep if trep_missing_date_verificador == 0
{txt}(1,511 observations deleted)

{com}. 
.                 local x = tc(20oct2019 19:40:57)
{txt}
{com}.                 local x2 = tc(20oct2019 20:06:59)
{txt}
{com}. 
.                 * Binned data using binsreg
.                 binsreg mshare_so trep_date_verificador, savedata(temp) replace
{txt}Sorting dataset on trep_date_verificador...
Note: This step is omitted if dataset already sorted by trep_date_verificador.
{res}
{txt}Binscatter plot
Bin selection method: IMSE-optimal plug-in choice
Placement: Quantile-spaced
Derivative: 0
Output file: temp.dta

{hline 30}{c TT}{hline 15}
{lalign 1:# of observations}{col 30} {c |} {col 32}{res}  33042
{txt}{lalign 1:# of distinct values}{col 30} {c |} {col 32}{res}  10597
{txt}{lalign 1:# of clusters}{col 30} {c |} {col 32}{res}      .
{txt}{hline 30}{c +}{hline 15}
{lalign 1:Bin selection:}{col 30} {c |} 
{ralign 29:Degree of polynomial}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of smoothness constraints}{col 30} {c |} {col 32}{res}      0
{txt}{ralign 29:# of bins}{col 30} {c |} {col 32}{res}     89
{txt}{hline 30}{c BT}{hline 15}

{hline 9}{c TT}{hline 30}
{col 10}{c |}{col 17}p{col 25}s{col 33}df
{hline 9}{c +}{hline 30}
{lalign 1: dots}{col 10}{c |}{col 17}0{col 25}0{col 33}89
{hline 9}{c BT}{hline 30}
{res}{txt}
{com}. 
.                 use "temp.dta", clear
{txt}
{com}.                 erase "temp.dta"
{txt}
{com}. 
.                 local x = tc(20oct2019 19:40:57)
{txt}
{com}.                 local x2 = tc(20oct2019 20:06:59)
{txt}
{com}. 
.                 format dots_x %tc
{txt}
{com}.                 twoway (scatter dots_fit dots_x, msize(vsmall) mcolor(midblue)), ///
>                         graphregion(color(white)) ///
>                         xsize(7) ysize(5.5) ///
>                         xlabel(`x2' `" "8:06 p.m. (95.6%)" "') ///
>                         ylabel(, angle(0) nogrid) ///
>                         yscale(range(.2 .63)) ///
>                         xline(`x2', lcolor(black) lpattern(dash)) ///
>                         ytitle("Average Incumbent (MAS) Vote Share") ///
>                         xtitle("Verification Time")
{res}{txt}
{com}.                 graph export "outputs/generated/Figure_A3a.pdf", replace
{txt}(file outputs/generated/Figure_A3a.pdf written in PDF format)

{com}. 
.         * Figure A.3.b
.         *-------------
.         use "data/outputs/computo_verificadortrepdate_nomissings.dta", clear
{txt}
{com}. 
.         rdplot mshare_so pcs_so, c(.9559054) binselect(es) ///
>                 graph_options(xsize(7) ysize(5.5) ///
>                         ytitle("Average Incumbent (MAS) Vote Share") ///
>                         xtitle("Proportion of Preliminary Vote Verified") ///
>                         graphregion(color(white)) legend(off) ///
>                         ylabel(.2(.1).6, angle(0) nogrid) ///
>                         xlabel(0  .956  1 ))
{res}
RD Plot with evenly spaced number of bins using spacings estimators.

{txt}{ralign 21: Cutoff c = .9559054}{col 22} {c |} {col 23}Left of {res}c{col 36}{txt}Right of {res}c{col 54}{txt}Number of obs  = {res}     33042
{txt}{hline 22}{c +}{hline 22}{col 54}Kernel         = {res}{ralign 10:Uniform}
{txt}{ralign 21:Number of obs}{col 22} {c |} {col 23}{res}    31563{col 37}     1479
{txt}{ralign 21:Eff. Number of obs}{col 22} {c |} {col 23}{res}    31563{col 37}     1479
{txt}{ralign 21:Order poly. fit (p)}{col 22} {c |} {col 23}{res}        4{col 37}        4
{txt}{ralign 21:BW poly. fit (h)}{col 22} {c |} {col 23}{res}    0.956{col 37}    0.044
{txt}{ralign 21:Number of bins scale}{col 22} {c |} {col 23}{res}    1.000{col 37}    1.000

Outcome: mshare_so. Running variable: pcs_so.
{txt}{hline 22}{c TT}{hline 22}
{col 22} {c |} {col 23}Left of {res}c{col 36}{txt}Right of {res}c
{txt}{hline 22}{c +}{hline 22}
{ralign 21:Bins selected}{col 22} {c |} {col 23}{res}        9{col 37}        7
{txt}{ralign 21:Average bin length}{col 22} {c |} {col 23}{res}    0.106{col 37}    0.006
{txt}{ralign 21:Median bin length}{col 22} {c |} {col 23}{res}    0.106{col 37}    0.006
{txt}{hline 22}{c +}{hline 22}
{ralign 21:IMSE-optimal bins}{col 22} {c |} {col 23}{res}        9{col 37}        7
{txt}{ralign 21:Mimicking Var. bins}{col 22} {c |} {col 23}{res}      329{col 37}      366
{txt}{hline 22}{c +}{hline 22}
{lalign 1:Rel. to IMSE-optimal:}{col 22} {c |} 
{ralign 21:Implied scale}{col 22} {c |} {col 23}{res}    1.000{col 37}    1.000
{txt}{ralign 21:WIMSE var. weight}{col 22} {c |} {col 23}{res}    0.500{col 37}    0.500
{txt}{ralign 21:WIMSE bias weight}{col 22} {c |} {col 23}{res}    0.500{col 37}    0.500
{txt}{hline 22}{c BT}{hline 22}

{res}{txt}
{com}.                 graph export "outputs/generated/Figure_A3b.pdf", replace
{txt}(file outputs/generated/Figure_A3b.pdf written in PDF format)

{com}. 
. *------------------------------------------------------------------------------*
. timer off 2
{txt}
{com}. timer list 2
{res}   2:      1.74 /        1 =       1.7370
{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}E:\Github\Bolivia\00_replication_files\log-files/2_Figure_A3.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}25 Jan 2022, 21:40:03
{txt}{.-}
{smcl}
{txt}{sf}{ul off}